home *** CD-ROM | disk | FTP | other *** search
/ Hardcore Gamer Resource Kit / Hardcore Gamer Resource Kit - Disc 2.iso / Pc / U_Z / WC4WIN95.ZIP / INSTALL.BAT < prev    next >
DOS Batch File  |  1996-08-29  |  6KB  |  219 lines

  1. @REM ----------
  2. @REM INSTALL - Written by Anthony L. Sommers and Dieter Martin
  3. @REM ----------
  4.  
  5. @echo off
  6. if "%windir%"=="" goto E_win_not_running
  7.  
  8. if not "%1"=="" goto L_parameter
  9.  
  10. :L_start
  11. SET SH=FALSE
  12. SET SM=FALSE
  13.  
  14. cls
  15. echo Wing Commander IV for Windows 95 (WC4WIN95) [TM]
  16. echo (c) 1996, Origin Systems
  17. echo.
  18. echo You have chosen to install the Wing Commander IV for Windows 95.
  19. echo WC4WIN95 requires that you have the release version of Wing
  20. echo Commander IV for MS-DOS.
  21. echo.
  22. echo For ease in installation, we will ask you a series of questions.
  23. echo Simply press [Y] to answer YES, and [N] to answer NO.
  24. echo.
  25. choice Do you have Wing Commander IV for MS-DOS 
  26. if errorlevel==2 goto E_no_wc4
  27.  
  28. echo.
  29. choice Is Wing Commander IV installed 
  30. if errorlevel==2 goto E_not_installed
  31.  
  32. echo.
  33. choice Is Wing Commander IV installed in the default directory (C:\WC4) 
  34. if errorlevel==2 goto E_dir_not_specified
  35.  
  36. if not exist "c:\wc4\wc4.exe" goto E_dir
  37.  
  38. :L_shortcut
  39. echo.
  40. echo Would you like a shortcut placed on your desktop to run
  41. choice Wing Commander IV for Windows 95 
  42. if errorlevel==2 goto L_start_menu
  43.  
  44. if exist c:\win95\explorer.exe goto L_cs_95
  45. if exist c:\windows\explorer.exe goto L_cs_dows
  46. if exist c:\win31\explorer.exe goto L_cs_31
  47.  
  48. echo INSTALL was unable to find your Windows 95 directory. A shortcut
  49. echo was not created. Consult the HELP_WC4.TXT file for information
  50. echo on how to create a shortcut manually.
  51. goto L_install
  52.  
  53. :L_cs_95
  54. SET SH=TRUE
  55. copy wingco~1.$$$ "c:\win95\desktop\Wing Commander IV for Windows 95.lnk" > NUL
  56. goto L_start_menu
  57.  
  58. :L_cs_dows
  59. SET SH=TRUE
  60. copy wingco~1.$$$ "c:\windows\desktop\Wing Commander IV for Windows 95.lnk" > NUL
  61. goto L_start_menu
  62.  
  63. :L_cs_31
  64. SET SH=TRUE
  65. copy wingco~1.$$$ "c:\win31\desktop\Wing Commander IV for Windows 95.lnk" > NUL
  66. goto L_start_menu
  67.  
  68. :L_start_menu
  69. echo.
  70. echo Would you like a program group for Wing Commander IV for Windows 95
  71. choice listed under the Start Menu ("Programs\Origin") 
  72. if errorlevel==2 goto L_install
  73.  
  74. if exist c:\win95\explorer.exe goto L_cpg_95
  75. if exist c:\windows\explorer.exe goto L_cpg_dows
  76. if exist c:\win31\explorer.exe goto L_cpg_31
  77.  
  78. echo INSTALL was unable to find your Windows 95 directory. A program
  79. echo group was not created.
  80. goto L_install
  81.  
  82. :L_cpg_95
  83. SET SM=TRUE
  84. md c:\win95\startm~1\Programs\Origin > NUL
  85. copy wingco~1.$$$ "c:\win95\startm~1\Programs\Origin\Wing Commander IV for Windows 95.lnk" > NUL
  86. copy wc4_ih.$$$ "c:\win95\startm~1\Programs\Origin\Wing Commander IV Install Help.lnk" > NUL
  87. copy wc4_re.$$$ "c:\win95\startm~1\Programs\Origin\Wing Commander IV Readme.lnk" > NUL
  88. goto L_install
  89.  
  90. :L_cpg_dows
  91. SET SM=TRUE
  92. md c:\windows\startm~1\Programs\Origin > NUL
  93. copy wingco~1.$$$ "c:\windows\startm~1\Programs\Origin\Wing Commander IV for Windows 95.lnk" > NUL
  94. copy wc4_ih.$$$ "c:\windows\startm~1\Programs\Origin\Wing Commander IV Install Help.lnk" > NUL
  95. copy wc4_re.$$$ "c:\windows\startm~1\Programs\Origin\Wing Commander IV Readme.lnk" > NUL
  96. goto L_install
  97.  
  98. :L_cpg_31
  99. SET SM=TRUE
  100. md c:\win31\startm~1\Programs\Origin > NUL
  101. copy wingco~1.$$$ "c:\win31\startm~1\Programs\Origin\Wing Commander IV for Windows 95.lnk" > NUL
  102. copy wc4_ih.$$$ "c:\win31\startm~1\Programs\Origin\Wing Commander IV Install Help.lnk" > NUL
  103. copy wc4_re.$$$ "c:\win31\startm~1\Programs\Origin\Wing Commander IV Readme.lnk" > NUL
  104. goto L_install
  105.  
  106. :L_install
  107. echo.
  108. echo Installing...
  109. copy wc4w.exe c:\wc4 > NUL
  110. copy xanlib.dll c:\wc4 > NUL
  111. copy help_wc4.txt c:\wc4 > NUL
  112. copy readme95.txt c:\wc4 > NUL
  113. goto L_complete
  114.  
  115. :L_parameter
  116. if not exist "%1\wc4.exe" goto E_dir
  117. echo.
  118. echo Installing...
  119. copy wc4w.exe %1 > NUL
  120. copy xanlib.dll %1 > NUL
  121. copy help_wc4.txt %1 > NUL
  122. copy readme95.txt %1 > NUL
  123. echo.
  124. echo Installation complete.
  125. goto L_done
  126.  
  127. :L_complete
  128. echo.
  129. echo Installation complete.
  130.  
  131. :L_sh
  132. if "%SH%"=="FALSE" goto L_sm
  133. echo.
  134. echo You may run Wing Commander IV for Windows 95 by double-clicking
  135. echo the shortcut created on your Desktop.
  136.  
  137. :L_sm
  138. if "%SM%"=="FALSE" goto L_done
  139. echo.
  140. echo You may run Wing Commander IV for Windows 95 by clicking on 
  141. echo Start/Programs/Origin/Wing Commander IV for Windows 95.
  142.  
  143. :L_done
  144. echo.
  145. echo You may run Wing Commander IV for Windows 95 by executing WC4W.EXE
  146. echo in the Wing Commander IV directory (folder).
  147. goto end
  148.  
  149. REM ----------
  150. REM Error statements
  151. REM ----------
  152.  
  153. :E_win_not_running
  154. cls 
  155. echo Exiting INSTALL :
  156. echo.
  157. echo INSTALL requires Windows 95. Please run Windows 95 and restart
  158. echo the installation.
  159. echo.
  160. goto end
  161.  
  162. :E_no_wc4
  163. cls 
  164. echo Exiting INSTALL :
  165. echo.
  166. echo Please run down to your local software store and BUY it! :)
  167. echo.
  168. goto end
  169.  
  170. :E_not_installed
  171. cls 
  172. echo Exiting INSTALL :
  173. echo.
  174. echo You must install the DOS version of Wing Commander IV before 
  175. echo installing the Windows 95 version. Please consult the 
  176. echo Wing Commander IV Install Guide for instructions on installing
  177. echo the DOS version.
  178. echo.
  179. goto end
  180.  
  181. :E_dir_not_specified
  182. cls 
  183. echo Exiting INSTALL :
  184. echo.
  185. echo You must specify a directory where Wing Commander IV is installed.
  186. echo For example :
  187. echo.
  188. echo     INSTALL C:\GAMES\WC4
  189. echo.
  190. echo In this example, 
  191. echo.
  192. echo     C:          is the hard drive letter
  193. echo     \GAMES\WC4  is the directory or folder for Wing Commander IV
  194. echo.
  195. goto end
  196.  
  197. :E_dir
  198. cls 
  199. echo Exiting INSTALL :
  200. echo.
  201. echo Wing Commander IV could not be found in the directory 
  202. echo %1. Check the directory spelling and try again.
  203. echo.
  204. echo For example :
  205. echo.
  206. echo     INSTALL C:\GAMES\WC4
  207. echo.
  208. echo In this example, 
  209. echo.
  210. echo     C:          is the hard drive letter
  211. echo     \GAMES\WC4  is the directory or folder for Wing Commander IV
  212. echo.
  213. goto end
  214.  
  215. :end
  216.  
  217.  
  218.  
  219.